package com.farmer.service;

import com.farmer.pojo.Agritainment;
import com.farmer.pojo.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.farmer.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author 86183
* @description 针对表【goods(扶贫商品表)】的数据库操作Service
* @createDate 2024-04-28 13:28:04
*/
public interface GoodsService extends IService<Goods> {
    Result add(Goods goods);

    Result delete(Integer id);

    Result getById(Integer id);

    Result getAll();

    Result deleteBatch(List<Integer> ids);

    Result update(Goods goods);

    Result getByTitleLike(String title);

//    Result ImgInsert(Integer id, MultipartFile file);

    Result ImgInsert(Integer id, MultipartFile file, String name, Double price, Integer num, Integer sales);

    /*
     * 分页查询*/
    Result page(Integer pageNum, Integer pageSize);
}
